<template>
	<view class="container">
		<u-form :model="form" ref="form" label-width="180"><scan-product-form-item ref="formItem" :need-detail="true"></scan-product-form-item></u-form>
		<view class="bottomOpeCon flex justify-center">
			<view><u-button type="error" size="medium" @click="reSearchClick">重新查询</u-button></view>
		</view>
	</view>
</template>

<script>
import ScanProductFormItem from './components/scanProductFormItem/scanProductFormItem.vue';
import { mapActions } from 'vuex';
export default {
	components: {
		ScanProductFormItem
	},
	data() {
		return {
			form: {}
		};
	},
	methods: {
		...mapActions({
			getDeviceByCustomer: 'storageOrder/getDeviceByCustomer'
		}),
		reSearchClick() {
			this.$refs.formItem.resetForm();
		}
	}
};
</script>

<style lang="less">
.container {
	padding: 12rpx 64rpx;
}
.bottomOpeCon {
	height: 94rpx;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100vw;
	padding: 12rpx;
}
</style>
